

import java.util.ArrayList;

public abstract class Shape 
{
	public abstract double getArea();
	
	public abstract double getPerimeter();
	
	public abstract ArrayList<Point> getSequenceOfPointsToDraw();
	
	public void draw(TwoDimensionalCanvas canvas)
	{
		ArrayList<Point> points = getSequenceOfPointsToDraw();
		
		for(int i = 0; i < points.size() - 1; i++)
		{
			canvas.drawLine(points.get(i), points.get(i+1));
		}
	}
}
